import httpService from '@/network/http'
import { type InfinityModuleType } from './type.d'
import { type CustomPagingResponse, type PageInterfaceCommonParams } from '@/api/type.d'
import { ApiMethod } from '@/utils/constant'

const PathPrefix = '/infinityModule/'

/** 查询列表 */
export const infinityModuleQueryList = (data?: {
  /** 关键字 */
  keyword?: string
} & PageInterfaceCommonParams): Promise<CustomPagingResponse<InfinityModuleType>> => {
  return httpService({
    url: PathPrefix + 'queryList',
    method: ApiMethod.POST,
    data,
  })
}